﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 图形
{
    class Square:Sharp
    {
        private double sideLen1;
        private double sideLen2;

        public double SideLen1
        {
            get
            {
                return this.sideLen1;
            }
            set
            {
                this.sideLen1 = value;
            }
        }
        public double SideLen2
        {
            get
            {
                return this.sideLen2;
            }
            set
            {
                this.sideLen2 = value;
            }
        }
        public override void GetArea()
        {
            base.GetArea();
            double result = this.SideLen1 * this.sideLen2;
            Console.WriteLine("是个{1}的正方形，规则图形面积为{0}",result,base.Color);
        }
    }
}
